//
//  TTDetailSharePopView.m
//  TaoTuo
//
//  Created by admin on 2019/12/10.
//  Copyright © 2019 admin. All rights reserved.
//

#import "TTDetailSharePopView.h"
#import <UIView+TYAlertView.h>
#import <WXApi.h>

@interface TTDetailSharePopView ()
@property (weak, nonatomic) IBOutlet UIView *titleBgView;


@end

@implementation TTDetailSharePopView

- (void)awakeFromNib
{
    [super awakeFromNib];
    
    self.width = SCREEN_WIDTH - 60;
    
    self.layer.cornerRadius = 10;
    self.layer.masksToBounds = YES;
    
    [self layoutIfNeeded];
    
    [self.titleBgView addGradientRampWithColors:@[UIColorHex(6822B7), UIColorHex(6C59ED)] colorDirection:HorizontalDirection];
    
}

///取消
- (IBAction)cancelBtnClick:(UIButton *)sender {
    
    [self hideInWindow];
    
}

///去微信
- (IBAction)openWeixinClick:(UIButton *)sender {
    
    [WXApi openWXApp];
    
    [self hideInWindow];
}

@end
